package com.poster.mappers;

import com.poster.entity.po.Role;
import com.poster.entity.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.*;

public interface RoleMapper {

    int insert(@Param("bean") Role bean);

    int insertOrUpdate(@Param("bean") Role bean);

    int updateByParam(@Param("bean") Role role,@Param("query") RoleQuery query);

    List<Role> selectList(@Param("query") RoleQuery query);

    Integer selectIdByCode(String code);

    boolean existById(Integer id);

    boolean existByName(String name);



}
